package com.example.androidsx;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

public class gly extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_gly);

        // 绑定用户管理按钮
        Button btnUserManagement = findViewById(R.id.btn_user_management);
        btnUserManagement.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                // 跳转到用户管理页面
                startActivity(new Intent(gly.this, UserManagementActivity.class));
            }
        });

        // 绑定商品管理按钮
        Button btnProductManagement = findViewById(R.id.btn_product_management);
        btnProductManagement.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                // 跳转到商品管理页面
                startActivity(new Intent(gly.this, ProductManagementActivity.class));
            }
        });

        // 绑定供应商管理按钮
        Button btnSupplierManagement = findViewById(R.id.btn_supplier_management);
        btnSupplierManagement.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                // 跳转到供应商管理页面
                startActivity(new Intent(gly.this, SupplierManagementActivity.class));
            }
        });
    }
}